package com.naiterui.ehp.bs.b2c.address.vo;

import javax.validation.constraints.NotEmpty;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import lombok.Data;

import io.swagger.annotations.ApiModelProperty;

/**
 * 地址簿参数VO
 *
 * @author guoyongxiang
 * @date 2019-01-10 19:43
 * @since 1.0.0
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class ShippingInfoParamVO {

    @ApiModelProperty(value = "ID")
    private Long id;

    @NotEmpty(message = "收货人不能为空")
    @ApiModelProperty(value = "收货人")
    private String receiver;

    @NotEmpty(message = "电话不能为空")
    @ApiModelProperty(value = "电话")
    private String phone;

    @NotEmpty(message = "详细地址不能为空")
    @ApiModelProperty(value = "详细地址")
    private String addr;

    @NotEmpty(message = "城市不能为空")
    @ApiModelProperty(value = "城市ID")
    private Long cityId;

    @ApiModelProperty(value = "邮编")
    private String zipcode;

    @ApiModelProperty(value = "默认地址(0:否, 1:是)")
    private Integer defaultAddr;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
